The libraries and code here perform "CLUT"-based screen fades, usable from both C and Pascal. It is based on a demo by Jonas Englund, modified and extended by myself (Ingemar Ragnemalm).
"CLUT"-based fading is only one way to do it. A drawback with "CLUT" fading is that it only works on screens with 256 colors or less. "Gamma" fading is another way, which works with more Macs but can only fade to black.